package com.TTBook.core.book.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Book implements Serializable {
    private String bookid;

    private String bookName;

    private BigDecimal bookOrgprice;

    private BigDecimal bookMallPrice;

    private String bookCatId;

    private String merchantBookId;

    private Date modifyTime;

    private String type;

    private String bookInfoId;

    private static final long serialVersionUID = 1L;

    public String getBookid() {
        return bookid;
    }

    public void setBookid(String bookid) {
        this.bookid = bookid == null ? null : bookid.trim();
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName == null ? null : bookName.trim();
    }

    public BigDecimal getBookOrgprice() {
        return bookOrgprice;
    }

    public void setBookOrgprice(BigDecimal bookOrgprice) {
        this.bookOrgprice = bookOrgprice;
    }

    public BigDecimal getBookMallPrice() {
        return bookMallPrice;
    }

    public void setBookMallPrice(BigDecimal bookMallPrice) {
        this.bookMallPrice = bookMallPrice;
    }

    public String getBookCatId() {
        return bookCatId;
    }

    public void setBookCatId(String bookCatId) {
        this.bookCatId = bookCatId == null ? null : bookCatId.trim();
    }

    public String getMerchantBookId() {
        return merchantBookId;
    }

    public void setMerchantBookId(String merchantBookId) {
        this.merchantBookId = merchantBookId == null ? null : merchantBookId.trim();
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getBookInfoId() {
        return bookInfoId;
    }

    public void setBookInfoId(String bookInfoId) {
        this.bookInfoId = bookInfoId == null ? null : bookInfoId.trim();
    }

    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof Book)) {
            return false;
        }
        Book other = (Book) that;
        return this.getBookid() == null ? other == null : this.getBookid().equals(other.getBookid())
            && this.getBookName() == null ? other == null : this.getBookName().equals(other.getBookName())
            && this.getBookOrgprice() == null ? other == null : this.getBookOrgprice().equals(other.getBookOrgprice())
            && this.getBookMallPrice() == null ? other == null : this.getBookMallPrice().equals(other.getBookMallPrice())
            && this.getBookCatId() == null ? other == null : this.getBookCatId().equals(other.getBookCatId())
            && this.getMerchantBookId() == null ? other == null : this.getMerchantBookId().equals(other.getMerchantBookId())
            && this.getModifyTime() == null ? other == null : this.getModifyTime().equals(other.getModifyTime())
            && this.getType() == null ? other == null : this.getType().equals(other.getType())
            && this.getBookInfoId() == null ? other == null : this.getBookInfoId().equals(other.getBookInfoId());
    }

    public int hashCode() {
        int hash = 23;
        if (getBookid() != null) {
            hash *= getBookid().hashCode();
        }
        if (getBookName() != null) {
            hash *= getBookName().hashCode();
        }
        if (getBookOrgprice() != null) {
            hash *= getBookOrgprice().hashCode();
        }
        if (getBookMallPrice() != null) {
            hash *= getBookMallPrice().hashCode();
        }
        if (getBookCatId() != null) {
            hash *= getBookCatId().hashCode();
        }
        if (getMerchantBookId() != null) {
            hash *= getMerchantBookId().hashCode();
        }
        if (getModifyTime() != null) {
            hash *= getModifyTime().hashCode();
        }
        if (getType() != null) {
            hash *= getType().hashCode();
        }
        if (getBookInfoId() != null) {
            hash *= getBookInfoId().hashCode();
        }
        return hash;
    }
}